ParcelUtil

object ParcelUtil

Contains a set of methods to handle Parcelable.

Functions

marshall
Link copied to clipboard
fun marshall(parcelable: Parcelable): ByteArray
Marshalls the provided Parcelable i.e.
unmarshall
Link copied to clipboard
fun unmarshall(data: ByteArray): Parcel
Unmarshall a byte array, previously generated with ParcelUtil.marshall.
fun <T> unmarshall(data: ByteArray, creator: Parcelable.Creator<T>): T
Recreates a Parcelable that was previously marshalled.